<template>
  <view class="content">
    <img class="logo" src="/static/logo.svg" @click="gogogo" />
    <view class="text-area">
      <span class="title">{{ title }}</span>
    </view>
  </view>
</template>

<script setup lang="ts">
import { onShow, onLoad } from '@dcloudio/uni-app'
import { useCounterStore } from '@/stores/modules/counter'

const title = ref('Hello')

const gogogo = () => {
  uni.reLaunch({
    url: '/pages/center/index'
  })
}

onShow(() => {
  console.log('onShow')
})
onLoad((query) => {
  // pageQuery.value = query;
  console.log('onLoad')
})
</script>

<style lang="scss" scoped>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  .logo {
    height: 200rpx;
    width: 200rpx;
    margin-top: 200rpx;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50rpx;
  }
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
